<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>数组合并</title>
	</head>
	<body>
		<h4>题目描述</h4>
		<p>合并数组 arr1 和数组 arr2。不要直接修改数组 arr，结果返回新的数组</p>
		<span>concat([1, 2, 3, 4], ['a', 'b', 'c', 1])</span>
		<script>
			function concat(a,b){
				var arr1 = a;
				var arr2 = b;
				var new_arr = arr1.concat(arr2);
				console.log(new_arr);
			}

			concat([1, 2, 3, 4], ['a', 'b', 'c', 1]);
		</script>
	</body>
</html>
